import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// import 全局样式文件
import './assets/css/global.less'
// import 字体文件
import './assets/font/iconfont.css'

// import echarts
import echarts from 'echarts'
// echarts 主题
import 'echarts/theme/dark.js'
import 'echarts/theme/vintage.js'
// import axios
import axios from 'axios'

// import webSocket
// import SocketService from '@/utils/socket_service'
// 创建WebSocket连接
// SocketService.Instance.connect()
// Vue.prototype.$socket = SocketService.Instance

// 将 echarts 挂载到原型对象上, 即可通过 this.$echarts 进行使用
Vue.prototype.$echarts = echarts
// axios 基本路径配置，并挂载到原型对象上
axios.defaults.baseURL = 'http://localhost:8888/api/'
Vue.prototype.$http = axios

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
